import javax.swing.JDialog;


public class Elevator {

	public static void main(String[] args) {
		
		
	}

}

class ElevatorStatus {
	
	private int currentFloor;
	private int direction; // 1은 위, -1은 아래
	
	public ElevatorStatus ()
	{
		currentFloor =  1;
		direction = 1;		
	}
	public void setCurrentFloor(int f)
	{
		currentFloor = f;		
	}
	public void setDirection(int d)
	{
		direction = d;
	}
	public int getCurrentFloor()
	{
		return currentFloor;
	}
	public int getDirection()
	{
		return direction;
	}
	
	
	
}



class FloorStatus{
	
	private int floor;
	private int whatElv; // 0은 없음, 1은 1호기, 2는 2호기
	private boolean upButton; // 위로가는 버튼  // true : 눌린거  false : 안눌린거
	private boolean downButton; // 아래로가는 버튼
	
	
	@SuppressWarnings("unchecked")
	public FloorStatus() {

		whatElv = 0;
		upButton = false;
		downButton = false;
	}
	
	public void setWhatElv(int e)
	{
		whatElv = e;
	}
	public void upButtonPressed()
	{
		upButton = true;
	}
	public void downButtonPressed()
	{
		downButton = true;
	}

	public void update(int flag)
	{
		if(flag==-1)
		{
			upButton=false;
		}
		else if (flag==1)
		{
			downButton=false;
		}
	}
	public int getWhatElv()
	{
		return whatElv;
	}
	public boolean getUpButton()
	{
		return upButton;
	}
	public boolean getDownButton()
	{
		return downButton;
	}


}
